Optimal. Leaf size=825 \[ \frac {f^2 x}{4 b d^2}-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}-\frac {2 f^2 \cos (c+d x)}{a d^3}-\frac {2 \left (a^2-b^2\right ) f^2 \cos (c+d x)}{a b^2 d^3}+\frac {(e+f x)^2 \cos (c+d x)}{a d}+\frac {\left (a^2-b^2\right ) (e+f x)^2 \cos (c+d x)}{a b^2 d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d}-\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d}+\frac {2 i f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )}{a d^2}-\frac {2 i f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )}{a d^2}+\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 f^2 \text {Li}_3\left (-e^{i (c+d x)}\right )}{a d^3}+\frac {2 f^2 \text {Li}_3\left (e^{i (c+d x)}\right )}{a d^3}+\frac {2 i \left (a^2-b^2\right )^{3/2} f^2 \text {Li}_3\left (\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^3}-\frac {2 i \left (a^2-b^2\right )^{3/2} f^2 \text {Li}_3\left (\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^3}-\frac {2 f (e+f x) \sin (c+d x)}{a d^2}-\frac {2 \left (a^2-b^2\right ) f (e+f x) \sin (c+d x)}{a b^2 d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.05, antiderivative size = 825, normalized size of antiderivative = 1.00, number of steps
used = 41, number of rules used = 18, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.529, Rules used = {4639, 4493,
4490, 3391, 3377, 2718, 4268, 2611, 2320, 6724, 4621, 3392, 32, 2715, 8, 3404, 2296, 2221}
\begin {gather*} \frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {(e+f x)^3}{6 b f}-\frac {2 \tanh ^{-1}\left (e^{i (c+d x)}\right ) (e+f x)^2}{a d}+\frac {\left (a^2-b^2\right ) \cos (c+d x) (e+f x)^2}{a b^2 d}+\frac {\cos (c+d x) (e+f x)^2}{a d}+\frac {i \left (a^2-b^2\right )^{3/2} \log \left (1-\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right ) (e+f x)^2}{a b^3 d}-\frac {i \left (a^2-b^2\right )^{3/2} \log \left (1-\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right ) (e+f x)^2}{a b^3 d}-\frac {\cos (c+d x) \sin (c+d x) (e+f x)^2}{2 b d}-\frac {f \cos ^2(c+d x) (e+f x)}{2 b d^2}+\frac {2 i f \text {PolyLog}\left (2,-e^{i (c+d x)}\right ) (e+f x)}{a d^2}-\frac {2 i f \text {PolyLog}\left (2,e^{i (c+d x)}\right ) (e+f x)}{a d^2}+\frac {2 \left (a^2-b^2\right )^{3/2} f \text {PolyLog}\left (2,\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right ) (e+f x)}{a b^3 d^2}-\frac {2 \left (a^2-b^2\right )^{3/2} f \text {PolyLog}\left (2,\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right ) (e+f x)}{a b^3 d^2}-\frac {2 \left (a^2-b^2\right ) f \sin (c+d x) (e+f x)}{a b^2 d^2}-\frac {2 f \sin (c+d x) (e+f x)}{a d^2}+\frac {f^2 x}{4 b d^2}-\frac {2 \left (a^2-b^2\right ) f^2 \cos (c+d x)}{a b^2 d^3}-\frac {2 f^2 \cos (c+d x)}{a d^3}-\frac {2 f^2 \text {PolyLog}\left (3,-e^{i (c+d x)}\right )}{a d^3}+\frac {2 f^2 \text {PolyLog}\left (3,e^{i (c+d x)}\right )}{a d^3}+\frac {2 i \left (a^2-b^2\right )^{3/2} f^2 \text {PolyLog}\left (3,\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^3}-\frac {2 i \left (a^2-b^2\right )^{3/2} f^2 \text {PolyLog}\left (3,\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^3}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 32
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 2715
Rule 2718
Rule 3377
Rule 3391
Rule 3392
Rule 3404
Rule 4268
Rule 4490
Rule 4493
Rule 4621
Rule 4639
Rule 6724
Rubi steps
\begin {align*} \int \frac {(e+f x)^2 \cos ^3(c+d x) \cot (c+d x)}{a+b \sin (c+d x)} \, dx &=\frac {\int (e+f x)^2 \cos ^3(c+d x) \cot (c+d x) \, dx}{a}-\frac {b \int \frac {(e+f x)^2 \cos ^4(c+d x)}{a+b \sin (c+d x)} \, dx}{a}\\ &=\frac {\int (e+f x)^2 \cos (c+d x) \cot (c+d x) \, dx}{a}-\frac {\int (e+f x)^2 \cos ^2(c+d x) \, dx}{b}+\left (\frac {a}{b}-\frac {b}{a}\right ) \int \frac {(e+f x)^2 \cos ^2(c+d x)}{a+b \sin (c+d x)} \, dx\\ &=-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}+\frac {\int (e+f x)^2 \csc (c+d x) \, dx}{a}-\frac {\int (e+f x)^2 \sin (c+d x) \, dx}{a}+\left (\frac {1}{a}-\frac {a}{b^2}\right ) \int (e+f x)^2 \sin (c+d x) \, dx-\frac {\int (e+f x)^2 \, dx}{2 b}+\frac {\left (a^2-b^2\right ) \int (e+f x)^2 \, dx}{b^3}-\frac {\left (a^2-b^2\right )^2 \int \frac {(e+f x)^2}{a+b \sin (c+d x)} \, dx}{a b^3}+\frac {f^2 \int \cos ^2(c+d x) \, dx}{2 b d^2}\\ &=-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}+\frac {(e+f x)^2 \cos (c+d x)}{a d}-\frac {\left (\frac {1}{a}-\frac {a}{b^2}\right ) (e+f x)^2 \cos (c+d x)}{d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}-\frac {\left (2 \left (a^2-b^2\right )^2\right ) \int \frac {e^{i (c+d x)} (e+f x)^2}{i b+2 a e^{i (c+d x)}-i b e^{2 i (c+d x)}} \, dx}{a b^3}-\frac {(2 f) \int (e+f x) \cos (c+d x) \, dx}{a d}-\frac {(2 f) \int (e+f x) \log \left (1-e^{i (c+d x)}\right ) \, dx}{a d}+\frac {(2 f) \int (e+f x) \log \left (1+e^{i (c+d x)}\right ) \, dx}{a d}+\frac {\left (2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f\right ) \int (e+f x) \cos (c+d x) \, dx}{d}+\frac {f^2 \int 1 \, dx}{4 b d^2}\\ &=\frac {f^2 x}{4 b d^2}-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}+\frac {(e+f x)^2 \cos (c+d x)}{a d}-\frac {\left (\frac {1}{a}-\frac {a}{b^2}\right ) (e+f x)^2 \cos (c+d x)}{d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {2 i f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )}{a d^2}-\frac {2 i f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )}{a d^2}-\frac {2 f (e+f x) \sin (c+d x)}{a d^2}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f (e+f x) \sin (c+d x)}{d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}+\frac {\left (2 i \left (a^2-b^2\right )^{3/2}\right ) \int \frac {e^{i (c+d x)} (e+f x)^2}{2 a-2 \sqrt {a^2-b^2}-2 i b e^{i (c+d x)}} \, dx}{a b^2}-\frac {\left (2 i \left (a^2-b^2\right )^{3/2}\right ) \int \frac {e^{i (c+d x)} (e+f x)^2}{2 a+2 \sqrt {a^2-b^2}-2 i b e^{i (c+d x)}} \, dx}{a b^2}-\frac {\left (2 i f^2\right ) \int \text {Li}_2\left (-e^{i (c+d x)}\right ) \, dx}{a d^2}+\frac {\left (2 i f^2\right ) \int \text {Li}_2\left (e^{i (c+d x)}\right ) \, dx}{a d^2}+\frac {\left (2 f^2\right ) \int \sin (c+d x) \, dx}{a d^2}-\frac {\left (2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f^2\right ) \int \sin (c+d x) \, dx}{d^2}\\ &=\frac {f^2 x}{4 b d^2}-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}-\frac {2 f^2 \cos (c+d x)}{a d^3}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f^2 \cos (c+d x)}{d^3}+\frac {(e+f x)^2 \cos (c+d x)}{a d}-\frac {\left (\frac {1}{a}-\frac {a}{b^2}\right ) (e+f x)^2 \cos (c+d x)}{d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d}-\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d}+\frac {2 i f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )}{a d^2}-\frac {2 i f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )}{a d^2}-\frac {2 f (e+f x) \sin (c+d x)}{a d^2}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f (e+f x) \sin (c+d x)}{d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}-\frac {\left (2 i \left (a^2-b^2\right )^{3/2} f\right ) \int (e+f x) \log \left (1-\frac {2 i b e^{i (c+d x)}}{2 a-2 \sqrt {a^2-b^2}}\right ) \, dx}{a b^3 d}+\frac {\left (2 i \left (a^2-b^2\right )^{3/2} f\right ) \int (e+f x) \log \left (1-\frac {2 i b e^{i (c+d x)}}{2 a+2 \sqrt {a^2-b^2}}\right ) \, dx}{a b^3 d}-\frac {\left (2 f^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2(-x)}{x} \, dx,x,e^{i (c+d x)}\right )}{a d^3}+\frac {\left (2 f^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,e^{i (c+d x)}\right )}{a d^3}\\ &=\frac {f^2 x}{4 b d^2}-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}-\frac {2 f^2 \cos (c+d x)}{a d^3}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f^2 \cos (c+d x)}{d^3}+\frac {(e+f x)^2 \cos (c+d x)}{a d}-\frac {\left (\frac {1}{a}-\frac {a}{b^2}\right ) (e+f x)^2 \cos (c+d x)}{d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d}-\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d}+\frac {2 i f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )}{a d^2}-\frac {2 i f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )}{a d^2}+\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 f^2 \text {Li}_3\left (-e^{i (c+d x)}\right )}{a d^3}+\frac {2 f^2 \text {Li}_3\left (e^{i (c+d x)}\right )}{a d^3}-\frac {2 f (e+f x) \sin (c+d x)}{a d^2}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f (e+f x) \sin (c+d x)}{d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}-\frac {\left (2 \left (a^2-b^2\right )^{3/2} f^2\right ) \int \text {Li}_2\left (\frac {2 i b e^{i (c+d x)}}{2 a-2 \sqrt {a^2-b^2}}\right ) \, dx}{a b^3 d^2}+\frac {\left (2 \left (a^2-b^2\right )^{3/2} f^2\right ) \int \text {Li}_2\left (\frac {2 i b e^{i (c+d x)}}{2 a+2 \sqrt {a^2-b^2}}\right ) \, dx}{a b^3 d^2}\\ &=\frac {f^2 x}{4 b d^2}-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}-\frac {2 f^2 \cos (c+d x)}{a d^3}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f^2 \cos (c+d x)}{d^3}+\frac {(e+f x)^2 \cos (c+d x)}{a d}-\frac {\left (\frac {1}{a}-\frac {a}{b^2}\right ) (e+f x)^2 \cos (c+d x)}{d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d}-\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d}+\frac {2 i f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )}{a d^2}-\frac {2 i f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )}{a d^2}+\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 f^2 \text {Li}_3\left (-e^{i (c+d x)}\right )}{a d^3}+\frac {2 f^2 \text {Li}_3\left (e^{i (c+d x)}\right )}{a d^3}-\frac {2 f (e+f x) \sin (c+d x)}{a d^2}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f (e+f x) \sin (c+d x)}{d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}+\frac {\left (2 i \left (a^2-b^2\right )^{3/2} f^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i b x}{a-\sqrt {a^2-b^2}}\right )}{x} \, dx,x,e^{i (c+d x)}\right )}{a b^3 d^3}-\frac {\left (2 i \left (a^2-b^2\right )^{3/2} f^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {i b x}{a+\sqrt {a^2-b^2}}\right )}{x} \, dx,x,e^{i (c+d x)}\right )}{a b^3 d^3}\\ &=\frac {f^2 x}{4 b d^2}-\frac {(e+f x)^3}{6 b f}+\frac {\left (a^2-b^2\right ) (e+f x)^3}{3 b^3 f}-\frac {2 (e+f x)^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )}{a d}-\frac {2 f^2 \cos (c+d x)}{a d^3}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f^2 \cos (c+d x)}{d^3}+\frac {(e+f x)^2 \cos (c+d x)}{a d}-\frac {\left (\frac {1}{a}-\frac {a}{b^2}\right ) (e+f x)^2 \cos (c+d x)}{d}-\frac {f (e+f x) \cos ^2(c+d x)}{2 b d^2}+\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d}-\frac {i \left (a^2-b^2\right )^{3/2} (e+f x)^2 \log \left (1-\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d}+\frac {2 i f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )}{a d^2}-\frac {2 i f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )}{a d^2}+\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 \left (a^2-b^2\right )^{3/2} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^2}-\frac {2 f^2 \text {Li}_3\left (-e^{i (c+d x)}\right )}{a d^3}+\frac {2 f^2 \text {Li}_3\left (e^{i (c+d x)}\right )}{a d^3}+\frac {2 i \left (a^2-b^2\right )^{3/2} f^2 \text {Li}_3\left (\frac {i b e^{i (c+d x)}}{a-\sqrt {a^2-b^2}}\right )}{a b^3 d^3}-\frac {2 i \left (a^2-b^2\right )^{3/2} f^2 \text {Li}_3\left (\frac {i b e^{i (c+d x)}}{a+\sqrt {a^2-b^2}}\right )}{a b^3 d^3}-\frac {2 f (e+f x) \sin (c+d x)}{a d^2}+\frac {2 \left (\frac {1}{a}-\frac {a}{b^2}\right ) f (e+f x) \sin (c+d x)}{d^2}+\frac {f^2 \cos (c+d x) \sin (c+d x)}{4 b d^3}-\frac {(e+f x)^2 \cos (c+d x) \sin (c+d x)}{2 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.11, size = 1221, normalized size = 1.48 \begin {gather*} \frac {\frac {24 \left (-2 d^2 e^2 \tanh ^{-1}\left (e^{i (c+d x)}\right )+2 d^2 e f x \log \left (1-e^{i (c+d x)}\right )+d^2 f^2 x^2 \log \left (1-e^{i (c+d x)}\right )-2 d^2 e f x \log \left (1+e^{i (c+d x)}\right )-d^2 f^2 x^2 \log \left (1+e^{i (c+d x)}\right )+2 i d f (e+f x) \text {Li}_2\left (-e^{i (c+d x)}\right )-2 i d f (e+f x) \text {Li}_2\left (e^{i (c+d x)}\right )-2 f^2 \text {Li}_3\left (-e^{i (c+d x)}\right )+2 f^2 \text {Li}_3\left (e^{i (c+d x)}\right )\right )}{a}+\frac {24 \left (2 i \left (a^2-b^2\right )^{3/2} d^2 e^2 \sqrt {\left (a^2-b^2\right ) e^{2 i c}} \tanh ^{-1}\left (\frac {-a+i b e^{i (c+d x)}}{\sqrt {a^2-b^2}}\right )+2 i \left (a^2-b^2\right )^2 d^2 e e^{i c} f x \log \left (1-\frac {i b e^{i (2 c+d x)}}{a e^{i c}-\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )+i \left (a^2-b^2\right )^2 d^2 e^{i c} f^2 x^2 \log \left (1-\frac {i b e^{i (2 c+d x)}}{a e^{i c}-\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )-2 i \left (a^2-b^2\right )^2 d^2 e e^{i c} f x \log \left (1-\frac {i b e^{i (2 c+d x)}}{a e^{i c}+\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )-i \left (a^2-b^2\right )^2 d^2 e^{i c} f^2 x^2 \log \left (1-\frac {i b e^{i (2 c+d x)}}{a e^{i c}+\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )+2 \left (a^2-b^2\right )^2 d e^{i c} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (2 c+d x)}}{a e^{i c}-\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )-2 \left (a^2-b^2\right )^2 d e^{i c} f (e+f x) \text {Li}_2\left (\frac {i b e^{i (2 c+d x)}}{a e^{i c}+\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )+2 i \left (a^2-b^2\right )^2 e^{i c} f^2 \text {Li}_3\left (\frac {i b e^{i (2 c+d x)}}{a e^{i c}-\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )-2 i \left (a^2-b^2\right )^2 e^{i c} f^2 \text {Li}_3\left (\frac {i b e^{i (2 c+d x)}}{a e^{i c}+\sqrt {\left (a^2-b^2\right ) e^{2 i c}}}\right )\right )}{a b^3 \sqrt {\left (a^2-b^2\right ) e^{2 i c}}}-\frac {-24 a^2 d^3 e^2 x+36 b^2 d^3 e^2 x-24 a^2 d^3 e f x^2+36 b^2 d^3 e f x^2-8 a^2 d^3 f^2 x^3+12 b^2 d^3 f^2 x^3-24 a b \left (-2 f^2+d^2 (e+f x)^2\right ) \cos (c+d x)+6 b^2 d f (e+f x) \cos (2 (c+d x))+48 a b d e f \sin (c+d x)+48 a b d f^2 x \sin (c+d x)+6 b^2 d^2 e^2 \sin (2 (c+d x))-3 b^2 f^2 \sin (2 (c+d x))+12 b^2 d^2 e f x \sin (2 (c+d x))+6 b^2 d^2 f^2 x^2 \sin (2 (c+d x))}{b^3}}{24 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.96, size = 0, normalized size = 0.00 \[\int \frac {\left (f x +e \right )^{2} \left (\cos ^{3}\left (d x +c \right )\right ) \cot \left (d x +c \right )}{a +b \sin \left (d x +c \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 2802 vs. \(2 (754) = 1508\).
time = 0.73, size = 2802, normalized size = 3.40 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e + f x\right )^{2} \cos ^{3}{\left (c + d x \right )} \cot {\left (c + d x \right )}}{a + b \sin {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F(-1)]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \text {Hanged} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________